    <div class="message">
      {*if $message} {$message} {/if*}    
    </div>
    
    
   
    
    
   
    {if $teachers} 
     
      
      
      {*}
      <!--form name="new_photo_form" method="post" enctype="multipart/form-data" action="{$new_photo_form_action}">
        <input type="file" name="photo[link]" />
        <input type="text" name="photo[title]" />
        <textarea name="photo[text]"></textarea>
        <input type="hidden" name="section_id" value="{$gallery.sections_id}" />
        <input type="hidden" name="gallery_id" value="{$gallery.galleries_id}" />
        <button>Загрузить</button>
      </form-->
      {/*}
      
      {if $teachers} 
      <form name="update_teachers_form" method="post" action="{$update_teachers_form_action}">
      {*}<input type="hidden" name="section_id" value="{$gallery.sections_id}" />{/*}
      <button>Сохранить</button>
        <table class="edit  ">
        <tbody>
        <tr>
          <th>Удалить
          </th>
          <th>Фото
          </th>
          <th>Имя
          </th>
          <th>Отчество
          </th>
          <th>Фамилия
          </th>
          <th>Электропочта
          </th>
          <th>Телефон
          </th>
          <th>Сжато
          </th>
          <th>Развёрнуто
          </th>
          <th>Дополнительно
          </th>
        </tr>
        
          {foreach from=$teachers item=teacher}
        <tr class="">  
          <td> <input type="checkbox" name="teachers[{$teacher.teachers_id}][delete]" value="{$teacher.teachers_id}" /> 
              <input type="hidden" name="teachers[{$teacher.teachers_id}][teachers_id]" value="{$teacher.teachers_id}" /> 
          </td>
          <td>
              {foreach from=$teacher.photo item=img} 
                 <img src="../Image/teacher/{$img}" style="max-width:100px;" />  <br/>
              {/foreach}
          </td>  
           
          <td>     <input type="text" name="teachers[{$teacher.teachers_id}][name]" value="{$teacher.name}" /> 
          </td>
          <td>     <input type="text" name="teachers[{$teacher.teachers_id}][second_name]" value="{$teacher.second_name}" /> 
          </td>
          <td>     <input type="text" name="teachers[{$teacher.teachers_id}][surname]" value="{$teacher.surname}" /> 
          </td>
          <td>    <input type="text" name="teachers[{$teacher.teachers_id}][email]" value="{$teacher.email}" /> 
          </td>
          <td>    <textarea name="teachers[{$teacher.teachers_id}][phone]">{$teacher.phone}</textarea>
          </td>
          <td>    <textarea name="teachers[{$teacher.teachers_id}][small_info]">{$teacher.small_info}</textarea>
          </td>
          <th>    <textarea name="teachers[{$teacher.teachers_id}][info]">{$teacher.info}</textarea>
          </td>
          <td>    <textarea name="teachers[{$teacher.teachers_id}][extra_info]">{$teacher.extra_info}</textarea>
          </td>
              
          </tr>
          {/foreach}
        </tbody>
        </table>  
      <button>Сохранить</button> 
      </form>
      {/if}
      
     
    {/if} 
  
    
    
